/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.web.ui;

import com.web.server.WEB920Server;
import com.web.ui.model.login.LoginFrame;
import org.jdesktop.application.SingleFrameApplication;

/**
 *
 * @author 920web.com
 */
public class UIApp extends SingleFrameApplication {
    
    public static void main(String[] args) {
        //加载滚动条
        JSplashWindowEx splash = new JSplashWindowEx();
        splash.start();
        //初始化上下文
        initContext();
    }
/**
     * 初始化上下文
     *
     * @author 于采兴
     * @version Ver1.0 2009-4-22 新建
     * @since PASIAM Ver1.0
     */
    public static void initContext(){
        WEB920Server.startServer("920web.com");
        
    }
    @Override
    protected void startup() {
        show(new LoginFrame());
    }
    //启动应用程序
    public static void run() {
        System.out.println("--------aaaa-------");
        launch(UIApp.class, null);
    }
    @Override
    protected void configureWindow(java.awt.Window root) {
    }
}
